Skip to content

Retrieve the effective merged policy for a user

Request

Returns the combined policy derived from all policies directly attached to the user plus those inherited via group membership.

Security
JWTAuthorizer
Path
emailstringrequired

User email

curl -i -X GET \
  'https://apidocs.trustgrid.io/_mock/user/{email}/policy' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
descriptionstring

Policy description

Example:"My policy description"
namestring

Policy name

Example:"my-policy"
resourcesArray of strings
conditionsobject
statementsArray of objects
Response
{ "description": "My policy description", "name": "my-policy", "resources": [ "string" ], "conditions": { "all": { … }, "any": { … }, "none": { … } }, "statements": [ { … } ] }